import com.adobe.cairngorm.control.CairngormEventDispatcher;

import net.optix.ip.events.CheckLoginEvent;
import net.optix.ip.model.ModelLocator;

import views.ViewInstance;

[Bindable]
private var model:ModelLocator	=	ModelLocator.getInstance();

private function initApp():void
{
	model.view				=	0;
	model.view				=	ViewInstance.Welcome;
	
	/*model.role		=	1
	var event:GetUserEvent	=	new GetUserEvent(1);
	com.adobe.cairngorm.control.CairngormEventDispatcher.getInstance().dispatchEvent(event);
	
	model.view				=	ViewInstance.ViewInventions;*/
	
	var checkLogin:CheckLoginEvent	=	new CheckLoginEvent();
	com.adobe.cairngorm.control.CairngormEventDispatcher.getInstance().dispatchEvent(checkLogin);
}